package com.by.springdoc.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "spring.doc")
public class SpringDocProperties {
    /**
     * 系统名称
     */
    private String title;

    String version;

    String desc;

    public String getTitle() {
        if (null == title) {
            this.title = "接口文档";
        }
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getVersion() {
        if (null == version) {
            this.version = "1.0.0";
        }
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getDesc() {
        if (null == desc) {
            this.desc = "这是springdoc文档描述";
        }
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
